package com.bodu.exchange.service;


import com.bodu.core.common.CommonService;

import com.bodu.exchange.entity.vo.ExchangeBookVo;
import com.bodu.exchange.entity.request.ExchangeBookRequest;

import java.util.List;

/**
* 记账本 Service
* @author Administrator
*/
public interface ExchangeBookService extends CommonService<ExchangeBookRequest,ExchangeBookVo> {

    List<ExchangeBookVo> bookList(ExchangeBookRequest exchangeBookRequest);

    /**
     * 更新默认状态
     * @param userId
     * @param defaultFlag
     * @return
     */
    Integer updateDefaultFlagByUserId(Long userId, Integer defaultFlag);

    Integer updateDefaultExchangeBookStatus(Long id, Integer defaultFlag);

}
